public class Foo {
	private final int i;
	
	public Foo(int i) {
		this.i = i;
	}

	@Override
	protected void finalize() throws Throwable {
		//TODO: print to console that finalize() was called		
		System.out.println(String.format("Finalize was called on Foo %s.", i));
		super.finalize();
	}
}
